import BlankView from '../components/page/blankView'
const asyncRouter = [
  {
    path: '/',
    name: 'example',
    redirect: '/queryTable',
    component: BlankView,
    meta: { title: '模板页', icon: 'dashboard' },
    children: [
      {
        path: '/queryTable',
        name: 'queryTable',
        component: () => import(/* webpackChunkName: "queryTable" */ '@/views/example/queryTable'),
        meta: { title: '查询表格' }
      },
      {
        path: '/form',
        name: 'form',
        component: () => import(/* webpackChunkName: "form" */ '@/views/example/form'),
        meta: { title: '表单验证' }
      },
      {
        path: '/analysis2',
        name: 'list2',
        component: BlankView,
        meta: { title: '列表2' },
        redirect: '/dashboard/analysis2/1',
        children: [
          {
            path: '/1',
            name: 'list2-1',
            component: () => import(/* webpackChunkName: "list2" */ '@/views/blank/blank'),
            meta: { title: '列表2-1' }
          },
          {
            path: '/2',
            name: 'list2-2',
            component: () => import(/* webpackChunkName: "list2" */ '@/views/blank/blank'),
            meta: { title: '隐藏列表2-2' },
            hidden: true
          }
        ]
      }
    ]
  },

  {
    path: '/list',
    name: 'dashboard2',
    component: BlankView,
    meta: { title: '示例页', icon: 'profile' },
    children: [
      {
        path: '/list/L1',
        name: 'L1',
        component: () => import(/* webpackChunkName: "dashboard2" */ '@/views/blank/blank'),
        meta: { title: '示例页1' }
      }
    ]
  }
]
export default asyncRouter
